set nodeList = theNode.selectNodes(".//item[@id=""" & kGenItemIdMain & """]")
for jj=0 to (nodeList.Length-1)
processNode nodeList.item(jj)
next
end if
'Do not keep the session in following cases
if gStrAction = kAction_MainLoginWindow or gStrAction = kAction_MainLogout or gStrAction = kAction_MainErrorWithLogout or gStrAction = kAction_RepExecWithLogout or gStrAction = kAction_RepExecOutputWithLogout then